<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Set Html Into Div</title>
<script src="../js/jquery-1.3.2.js"></script>
<script>
function countIt() {
	var num = $('li').size();
	alert(num);
}

$(function(){
	$("input").click(function() {
		countIt();
	});
});

// add empty field checking via external javascript

</script>

</head>
<body>
    <input type="button" value="Count"/> <p/>

	<ul>
		<li>hi1</li>
		<li>hi2</li>
	</ul>
</body>
</html>
